package com.carleasoft.mps.adu.business.position.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.carleasoft.mps.adu.business.position.bean.entity.AuthorityPositionEntity;
import com.carleasoft.mps.adu.business.position.bean.po.AuthorityPositionPagePo;
import com.carleasoft.mps.adu.business.position.bean.po.AuthorityPositionPo;
import com.carleasoft.mps.adu.business.position.bean.vo.AuthorityPositionVo;
import com.carleasoft.mps.adu.business.position.bean.vo.PositionVo;
import com.carleasoft.mps.core.tree.Tree;

import java.util.List;

/**
 * <p>Description: position service</p>
 * @since 2020-05-12
 * @author ztm
 */
public interface AuthorityPositionService extends IService<AuthorityPositionEntity> {


    Boolean addPosition(AuthorityPositionPo authorityPositionPo);

    Boolean updatePosition(AuthorityPositionPo authorityPositionPo);

    Page  selectList(Page page, AuthorityPositionPo authorityPositionPo);

    Boolean deleteById(String positionCode);

    List<PositionVo> listPosition();

    PositionVo findByCode(AuthorityPositionPo authorityPositionPo);

    Boolean checkPosition(AuthorityPositionPo authorityPositionPo);
}
